<?php

// api data sing retry allow_fail  ip  time

$bin = pack('A128A3072A32vvA12N', 'Api.action', "{'a':'1','b':'2'}", md5('askdkldsjafkl234132kljaskl'), 100, 1, '192.168.1.1', time());

//var_dump(bin2hex($bin));

$result = unpack("A128api/A3072data/A32sing/vretry/vallow_fail/A12ip/Ntime", $bin);

var_dump($result);